<?php use_javascript('jquery/jquery.numeric.js') ?>
<?php use_javascript('data/observation.js');?>

<div id="observation-form-dialog" title="Observation Location">
    <form method="post"
          action="<?php echo url_for('field-dialog/' . ($form->getObject()->isNew() ? 'createObservation' : 'updateObservation') . '?id=' . $research->getId()) ?>">

        <fieldset style="border: none">
            <p id="validate-tip" style="padding: 2px"></p>
            <table>
                <tr>
                    <td nowrap><?php echo $form['location']->renderLabel('Location Name', array('class' => '')) ?></td>
                    <td><?php echo $form['location']->render(array('class' => 'field-dialog text ui-widget-content ui-corner-all')) ?></td>
                </tr>
                <tr>
                    <td><?php echo $form['lat']->renderLabel('Latitude') ?></td>
                    <td><?php echo $form['lat']->render(array('class' => 'field-dialog text ui-widget-content ui-corner-all')) ?></td>
                </tr>
                <tr>
                    <td><?php echo $form['lng']->renderLabel('Longitude') ?></td>
                    <td><?php echo $form['lng']->render(array('class' => 'field-dialog text ui-widget-content ui-corner-all')) ?></td>
                </tr>
                <tr>
                    <td><?php echo $form['remarks']->renderLabel() ?></td>
                    <td><?php echo $form['remarks']->render(array('class' => 'field-dialog text ui-widget-content ui-corner-all')) ?></td>
                </tr>
                <tr>
                    <td nowrap><?php echo $form['observationdate']->renderLabel('Observation Date') ?></td>
                    <td><?php echo $form['observationdate']->render(array('class' => 'field-dialog text ui-widget-content ui-corner-all')) ?></td>
                </tr>

            <?php echo $form['_csrf_token']->render(); ?>
            <?php echo $form['id']; ?>
            <?php echo $form['researchid']->render() ?>
            <?php echo $form['created_at']->render() ?>
            <?php echo $form['updated_at']->render() ?>
            </table>
        </fieldset>
    </form>
</div>